:root{ --bg:#ffffff; --panel:#f7f7fb; --text:#0f172a; --muted:#64748b; --primary:#2563eb; --border:#e5e7eb; --shadow:0 6px 20px rgba(0,0,0,.08); }
@media (prefers-color-scheme: dark){ :root{ --bg:#0b1020; --panel:#111827; --text:#e5e7eb; --muted:#9aa5b1; --primary:#60a5fa; --border:#1f2937; --shadow:0 8px 30px rgba(0,0,0,.25); } }
html,body{ background:var(--bg); color:var(--text); font:14px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; margin:0; }
.container{ width:380px; padding:16px; }
.header h1{ margin:0; font-size:18px; }
.header .subtitle{ color:var(--muted); font-size:12px; }
.panel{ background:var(--panel); border:1px solid var(--border); border-radius:14px; padding:12px; box-shadow:var(--shadow); margin:12px 0; }
.settings-panel .row{ display:flex; align-items:center; gap:10px; margin:8px 0; }
.settings-panel label{ width:80px; color:var(--muted); }
input, select{ flex:1; background:#fff; border:1px solid var(--border); color:var(--text); border-radius:10px; padding:8px; }
@media (prefers-color-scheme: dark){ input,select{ background:#0b1224; } }
.btn{ background:#fff; border:1px solid var(--border); color:var(--text); border-radius:10px; padding:8px 12px; cursor:pointer; box-shadow:var(--shadow); }
.btn.primary{ background:var(--primary); border-color:var(--primary); color:#fff; }
.btn:disabled{ opacity:.6; cursor:not-allowed; }
.muted{ color:var(--muted); font-size:12px; }
.tabs{ display:flex; gap:8px; align-items:center; margin:10px 0; }
.tab-btn{ background:#fff; border:1px solid var(--border); color:var(--text); border-radius:10px; padding:6px 10px; cursor:pointer; box-shadow:var(--shadow); }
.tab-btn.active{ background:var(--primary); color:#fff; border-color:var(--primary); }
.tab{ display:none; }
.tab.active{ display:block; }
.dropzone{ border:2px dashed var(--border); border-radius:14px; padding:20px; text-align:center; margin:10px 0; background:var(--panel); }
.dropzone.dragging{ border-color:var(--primary); background:rgba(37,99,235,.06); }
@media (prefers-color-scheme: dark){ .dropzone.dragging{ background:rgba(96,165,250,.08); } }
.adv{ margin:10px 0; }
.actions{ display:flex; gap:8px; align-items:center; }
.upload-list{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.upload-item{ border:1px solid var(--border); border-radius:12px; padding:10px; background:var(--panel); box-shadow:var(--shadow); }
.upload-item .meta{ display:flex; justify-content:space-between; align-items:center; }
.upload-item .name{ font-weight:600; }
.progress{ height:8px; background:#fff; border:1px solid var(--border); border-radius:999px; overflow:hidden; margin-top:8px; }
@media (prefers-color-scheme: dark){ .progress{ background:#0b1224; } }
.progress .bar{ height:100%; width:0%; background:var(--primary); }
.status{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:8px; }
.status .links{ display:flex; gap:8px; flex-wrap:wrap; }
.history-actions{ display:flex; gap:8px; margin-bottom:8px; }
.history-list{ display:flex; flex-direction:column; gap:8px; }
.history-item{ border:1px solid var(--border); border-radius:12px; padding:10px; background:var(--panel); box-shadow:var(--shadow); }
.history-item .meta{ display:flex; justify-content:space-between; align-items:center; }
.history-item .name{ font-weight:600; }
.history-item .links{ display:flex; gap:8px; }
